MyParcelNL\WooCommerce\includes\Webhook\Service\WebhookSubscriptionService S

Total Complexity 28
Dependencies 12
Dependents 4
Total lines 321
Lines of code 137
Logical lines of code 65
Comment lines 111
Methods 17
Properties 1

Methods 17

Method Rating Maintainability Complexity Lines of code
subscribeToWebhooks()
S
59 3 14
delete()
S
61 3 12
hasValidSubscription()
S
64 3 10
createCallbackUrl()
S
58 2 15
createWebhook()
S
60 2 15
getExistingWebhook()
S
69 2 7
register()
S
68 2 7
loadSubscriptions()
S
68 2 7
registerRestRoute()
S
61 1 13
saveSubscription()
S
61 1 12
__construct()
S
80 1 3
getFullRestUrl()
S
78 1 3
getBaseCallbackPath()
S
70 1 7
getSubscriptions()
S
82 1 3
findByHook()
S
79 1 3
deleteAll()
S
80 1 3
generateHash()
S
78 1 3